package com.lu.user.feign;

import com.lu.api.user.IUserClient;
import com.lu.model.admin.dto.AuthDto;
import com.lu.model.common.dtos.ResponseResult;
import com.lu.user.service.ApUserRealnameService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserExamineController implements IUserClient {

    @Autowired
    private ApUserRealnameService apUserRealnameService;



    /**
     * 待审核用户列表查询
     * @param dto
     * @return
     */
    @PostMapping("/api/v1/auth/list")
    @Override
    public ResponseResult listExamine(AuthDto dto) {
        return apUserRealnameService.listExamine(dto);
    }



    /**
     * 审核不通过
     * @param dto
     * @return
     */
    @PostMapping("/api/v1/auth/authFail")
    @Override
    public ResponseResult failExamine(AuthDto dto) {
        return apUserRealnameService.failExamine(dto);
    }


    /**
     * 审核通过
     * @param dto
     * @return
     */
    @PostMapping("/api/v1/auth/authPass")
    @Override
    public ResponseResult successExamine(AuthDto dto) {
        return apUserRealnameService.successExamine(dto);
    }
}
